﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace CricketHub
{
    public partial class Webbrowser : PhoneApplicationPage
    {
        Webbrowser_requst obj = new Webbrowser_requst();
        public Webbrowser()
        {
            InitializeComponent();
            pgbar.Visibility = Visibility.Visible;
            obj.htt = this;
            obj.htm();
        }
        public void Browser_data(string browsercontent)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                webBrowser1.NavigateToString(browsercontent);
                pgbar.Visibility = Visibility.Collapsed;
            });
            System.Diagnostics.Debug.WriteLine(browsercontent);


        }
    }
}